echo -e "[archlinuxcn]\nServer = https://mirrors.bfsu.edu.cn/archlinuxcn/\$arch" |sudo tee -a /etc/pacman.conf
sudo pacman -Syyu
sudo pacman-key --lsign-key "farseerfc@archlinux.org"
sudo pacman -S archlinuxcn-keyring --noconfirm
sudo pacman -S yay zsh --noconfirm


sudo sed -i '/\[multilib\]/{s/#//;n;s/#//}' /etc/pacman.conf
yay -Syyu

sh -c "$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)"

echo "everthing ok?"
echo "more settings goto https://zhuanlan.zhihu.com/p/461393131"
echo "vaapi to ~/.config/chrome-flags.conf  ~/.config/chromium-flags.conf  ~/.config/microsoft-edge-stable-flags.conf for hardware accelaration"
echo "cp /usr/share/applications/xxxxx.desktop  .local/share/applications/ ;and change Exec=env WECHAT_IME_WORKAROUND=fcitx for wechat fcitx input;env QT_IM_MODULE=fcitx for wps component fcitx input"
echo "nano [Settings] gtk-im-module=fcitx >> ~/.config/gtk-3.0/settings.ini for xwayland chromium browser"
read $ok

